package com.youi.shop.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 地址表
 * </p>
 *
 * @author xxf
 * @since 2020-11-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("tb_company_address")
@ApiModel(value="CompanyAddress对象", description="地址表")
public class CompanyAddress implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "地址主键")
    @TableId(value = "address_id", type = IdType.AUTO)
    private Long addressId;

    @ApiModelProperty(value = "会员表主键")
    @TableField("member_id")
    private Long memberId;

    @ApiModelProperty(value = "商家用户主键")
    @TableField("user_id")
    private Long userId;

    @ApiModelProperty(value = "地址名称")
    @TableField("address_name")
    private String addressName;

    @ApiModelProperty(value = "默认发货地址：0->否；1->是")
    @TableField("send_status")
    private Integer sendStatus;

    @ApiModelProperty(value = "是否默认收货地址：0->否；1->是")
    @TableField("receive_status")
    private Integer receiveStatus;

    @ApiModelProperty(value = "联系人姓名")
    @TableField("contact")
    private String contact;

    @ApiModelProperty(value = "联系人电话")
    @TableField("phone")
    private String phone;

    @ApiModelProperty(value = "省份")
    @TableField("province")
    private String province;

    @ApiModelProperty(value = "城市")
    @TableField("city")
    private String city;

    @ApiModelProperty(value = "区")
    @TableField("district")
    private String district;

    @ApiModelProperty(value = "详细地址")
    @TableField("address_detail")
    private String addressDetail;

    @TableLogic
    @ApiModelProperty(value = "默认未删除：0->未删除；1->已删除")
    @TableField("del_status")
    private Integer delStatus;


}
